﻿using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms;

namespace DailyDiet.Services.Navigation
{
    /// <summary>
    /// 导航上下文
    /// </summary>
    public static class NavigationConstant {
        /// <summary>
        /// 导航参数属性
        /// </summary>
        public static readonly BindableProperty NavigationParameterProperty =
            BindableProperty.CreateAttached("NavigationParameter",
                typeof(Object), typeof(NavigationConstant),null,
                BindingMode.OneWayToSource);
        
        public static void SetParameter(BindableObject bindableObject, object value) {
            bindableObject.SetValue(NavigationParameterProperty, value);
        }
    }
}
